package com.grass.appointment.comment;

import com.androidx.p013lv.base.http.BaseRes;
import com.androidx.p013lv.base.http.HttpUtils;
import com.androidx.p013lv.base.http.JsonParams;
import com.androidx.p013lv.base.http.UrlManager;
import com.androidx.p013lv.base.http.callback.HttpCallback;
import com.androidx.p013lv.base.utils.LogUtils;
import com.grass.appointment.bean.CommentBean;
import com.grass.appointment.bean.ReplyBean;

public class CommentHttpUtils {
    public static void commentLike(CommentBean commentBean, int i) {
        HttpUtils.getInsatance().post(UrlManager.getInsatance().commentAboutLike(), JsonParams.build().add("commentId", Integer.valueOf(commentBean.getCommentId())).add("parentId", Integer.valueOf(i)).add("dynamicId", Integer.valueOf(commentBean.getDynamicId())).add("commentUserId", Integer.valueOf(commentBean.getUserId())).commit(), new HttpCallback<BaseRes<String>>("commentLike") {
            /* class com.grass.appointment.comment.CommentHttpUtils.C27801 */

            public void onLvSuccess(BaseRes<String> baseRes) {
                LogUtils.m63e("", "");
            }
        });
    }

    public static void commentUnlike(CommentBean commentBean, int i) {
        HttpUtils.getInsatance().post(UrlManager.getInsatance().commentAboutUnLike(), JsonParams.build().add("commentId", Integer.valueOf(commentBean.getCommentId())).add("parentId", Integer.valueOf(i)).add("dynamicId", Integer.valueOf(commentBean.getDynamicId())).add("commentUserId", Integer.valueOf(commentBean.getUserId())).commit(), new HttpCallback<BaseRes<String>>("commentUnLike") {
            /* class com.grass.appointment.comment.CommentHttpUtils.C27812 */

            public void onLvSuccess(BaseRes<String> baseRes) {
                LogUtils.m63e("", "");
            }
        });
    }

    public static void replyLike(ReplyBean replyBean, int i) {
        HttpUtils.getInsatance().post(UrlManager.getInsatance().commentAboutLike(), JsonParams.build().add("commentId", Integer.valueOf(replyBean.getCommentId())).add("parentId", Integer.valueOf(i)).add("dynamicId", Integer.valueOf(replyBean.getDynamicId())).add("commentUserId", Integer.valueOf(replyBean.getUserId())).commit(), new HttpCallback<BaseRes<String>>("commentLike") {
            /* class com.grass.appointment.comment.CommentHttpUtils.C27823 */

            public void onLvSuccess(BaseRes<String> baseRes) {
                LogUtils.m63e("", "");
            }
        });
    }

    public static void replyUnlike(ReplyBean replyBean, int i) {
        HttpUtils.getInsatance().post(UrlManager.getInsatance().commentAboutUnLike(), JsonParams.build().add("commentId", Integer.valueOf(replyBean.getCommentId())).add("parentId", Integer.valueOf(i)).add("dynamicId", Integer.valueOf(replyBean.getDynamicId())).add("commentUserId", Integer.valueOf(replyBean.getUserId())).commit(), new HttpCallback<BaseRes<String>>("commentUnLike") {
            /* class com.grass.appointment.comment.CommentHttpUtils.C27834 */

            public void onLvSuccess(BaseRes<String> baseRes) {
                LogUtils.m63e("", "");
            }
        });
    }
}
